<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script type="text/javascript" src="/static/js/officialClient.js"></script>
</head>
<body>
<table id="officialClient_datagrid"></table>
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <shiro:hasAnyRoles  name="ADMIN,销售主管">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-tip',plain:true" data-cmd="transferClient">移交客户</a>
    </shiro:hasAnyRoles>
    <br/>
    创建日期：
    <input name="beginTime" class="easyui-datebox" style="width: 120px">~
    <input name="endTime" class="easyui-datebox" style="width: 120px">
    精确搜索：
    <input name="idNo" class="easyui-textbox" prompt="身份证号" style="width: 80px">
    <input name="tel" class="easyui-textbox" prompt="电话" style="width: 80px">
    模糊搜索：
    <input name="keyword" class="easyui-textbox" prompt="客户/身份证/邮箱" style="width: 120px">
    <shiro:hasAnyRoles  name="ADMIN,销售主管">
        <input name="chargeUserName" class="easyui-textbox" prompt="负责人" style="width: 80px">
    </shiro:hasAnyRoles>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query">搜索</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
    <%--<input name="keyword" class="easyui-textbox" prompt="请输入角色名或编号">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query"></a>--%>
</div>
<div id="officialClient_dialog">
    <form id="officialClient_form" method="post">
        <input id="officialClientId" name="id" type="hidden">
        <table align="center" style="margin-top: 15px;">
            <tr>
                <td>客户姓名：</td><td><input type="text" name="name" class="easyui-textbox"></td>
                <td>性别:</td><td><input type="text" name="gender" class="easyui-combobox"
                           data-options='data:[{
                                "value":"1",
                                "text":"男"
                                },{
                                "value":"0",
                                "text":"女"
                                }],textField:"text",
                                valueField:"value",panelHeight:"auto"'>
                </td>
            </tr>
            <tr>
                <td>年龄：</td><td><input type="text" name="age" class="easyui-textbox"></td>
                <td>电话：</td><td><input type="text" name="tel" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>邮箱：</td><td><input type="text" name="email" class="easyui-textbox"></td>
                <td>地址：</td><td><input type="text" name="address" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>QQ：</td><td><input type="text" name="qq" class="easyui-textbox"></td>
                <td>微信：</td><td><input type="text" name="wechat" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>职业：</td><td><input id="officialClient_combobox" class="easyui-combobox" name="jobId"
                              data-options="textField:'name',valueField:'id',panelHeight:'auto',
                                url:'/dictionaries/getDictionariesSnByDetails.do?sn=Job'"></td>
                <td>身份证：</td><td><input type="text" name="idNo" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>客户来源：</td><td><input class="easyui-combobox" name="customerSourceId"
                                data-options="textField:'name',valueField:'id',panelHeight:'auto',
                                url:'/dictionaries/getDictionariesSnByDetails.do?sn=CustomerSource'"></td>
                <td>收入水平：</td><td><input class="easyui-combobox" name="salaryLevelId"
                                data-options="textField:'name',valueField:'id',panelHeight:'auto',
                                url:'/dictionaries/getDictionariesSnByDetails.do?sn=SalaryLeve'"></td>
            </tr>
            <div id="btn">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
            </div>
        </table>
    </form>
</div>

<div id="transferClient_dialog">
    <form id="transfer_form" method="post">
        <table align="center" style="margin-top:15px">
            <tbody><tr>
                <td width="32"></td>
                <td>要移交的客户:</td>
                <input type="hidden" name="customer.id">
                <td><input type="text" name="customer.name" class="easyui-textbox" readonly></td>
            </tr>
            <tr>
                <td width="32"></td>
                <td>当前负责人:</td>
                <input type="hidden" name="oldSeller.id">
                <td><input type="text" name="oldSeller.username" class="easyui-textbox" readonly></td>
            </tr>
            <tr></tr><tr></tr><tr></tr>
            <tr>
                <td width="32"></td>
                <td>要移交给:</td>
                <td><input type="text" name="transUser.id" class="easyui-combobox"
                           data-options="textField:'username',valueField:'id',panelHeight:'auto',
                                url:'/employee/list.do'"></td>
            </tr>
            <tr>
                <td width="32"></td>
                <td>移交原因:</td>
            </tr>
            <tr>
                <td width="32"></td>
                <td colspan="2"><textarea name="transReason" cols="33" rows="5"></textarea></td>
            </tr>
            </tbody>
            <div id="btn2">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save2">保存</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel2">取消</a>
            </div>
        </table>
    </form>
</div>

</body>
</html>
